/*
 * @Author: sharon
 * @Date: 2021-09-16 20:06:18
 * @LastEditTime: 2021-09-17 05:14:45
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /gsh-cli-dev-server/app/controller/project.js
 */
'use strict';

const Controller = require('egg').Controller;
const mongo = require('../utils/mongodb');

class Project extends Controller {
  async index() {
    const { ctx } = this;
    console.log(mongo);
    const data = await mongo.query('template');
    ctx.body = data;
  }
}

module.exports = Project;
